home *** CD-ROM | disk | FTP | other *** search
/ InterCD 2001 November / november_2001.iso / Browsers / Netscape 6.1 / browser.xpi / bin / chrome / comm.jar / content / editor / EdSpellCheck.xul < prev    next >
Encoding:
Extensible Markup Language  |  2001-07-09  |  5.0 KB  |  117 lines

  1. <?xml version="1.0"?>
  2.  
  3. <!--
  4.    - The contents of this file are subject to the Netscape Public
  5.    - License Version 1.1 (the "License"); you may not use this file
  6.    - except in compliance with the License. You may obtain a copy of
  7.    - the License at http://www.mozilla.org/NPL/
  8.    -  
  9.    - Software distributed under the License is distributed on an "AS
  10.    - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
  11.    - implied. See the License for the specific language governing
  12.    - rights and limitations under the License.
  13.    -  
  14.    - The Original Code is Mozilla Communicator client code, released
  15.    - March 31, 1998.
  16.    - 
  17.    - The Initial Developer of the Original Code is Netscape
  18.    - Communications Corporation. Portions created by Netscape are
  19.    - Copyright (C) 1998-1999 Netscape Communications Corporation. All
  20.    - Rights Reserved.
  21.    - 
  22.    - Contributor(s): 
  23.   -->
  24.  
  25. <?xml-stylesheet href="chrome://editor/skin/editor.css" type="text/css"?> 
  26. <?xml-stylesheet href="chrome://editor/skin/EditorDialog.css" type="text/css"?> 
  27. <!DOCTYPE window SYSTEM "chrome://editor/locale/EditorSpellCheck.dtd">
  28.  
  29. <!-- dialog containing a control requiring initial setup -->
  30. <window class="dialog" title="&windowTitle.label;"
  31.     xmlns:html="http://www.w3.org/1999/xhtml"
  32.     xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  33.     onload = "Startup()"
  34.     onclose = "onClose()"
  35.     orient="vertical">
  36.  
  37.   <script type="application/x-javascript" src="chrome://editor/content/EdDialogCommon.js"/>
  38.   <script type="application/x-javascript" src="chrome://editor/content/EdSpellCheck.js"/>
  39.   <script type="application/x-javascript" src="chrome://global/content/strres.js" />
  40.  
  41.   <spring id="location" offsetY="50" persist="offsetX offsetY"/>
  42.   <keyset id="keys">
  43.     <key keycode="VK_ENTER"  oncommand="doDefault()"/>
  44.     <key keycode="VK_RETURN" oncommand="doDefault()"/>
  45.     <key keycode="VK_ESCAPE" oncommand="onClose()"/>
  46.   </keyset>
  47.   <broadcaster id="args" value=""/>
  48.  
  49.   <grid>
  50.     <columns>
  51.       <column class="spell-check"/>
  52.       <column class="spell-check"/>
  53.     </columns>
  54.     <rows>
  55.       <row valign="middle" autostretch="never">
  56.         <text class="label" id="MisspelledWordLabel" value="&misspelledWord.label;"/>
  57.         <text class="label bold" id="MisspelledWord" crop="right"/>
  58.         <spring/>
  59.       </row>
  60.       <row valign="middle" autostretch="never">
  61.         <text class="label" id="ReplaceWordLabel" value="&wordEditField.label;"/>
  62.         <box valign="middle" autostretch="never" flex="1">
  63.           <textbox id="ReplaceWordInput" oninput="ChangeReplaceWord()"/>
  64.           <button class="dialog" id="CheckWord" oncommand="CheckWord()" label="&checkwordButton.label;"/>
  65.         </box>
  66.       </row>
  67.     </rows>
  68.   </grid>
  69.   <text class="label" id="SuggestedListLabel" value="&suggestions.label;"/>
  70.   <grid>
  71.     <columns><column/><column/></columns>
  72.     <rows>
  73.       <row flex="1">
  74.         <!-- BUG! setting class="MinWidth20em" on tree doesn't work (width=0) -->
  75.         <tree rows="8" class="list" id="SuggestedList" onselect="SelectSuggestedWord()">
  76.           <treecolgroup>
  77.             <treecol flex="1"/>
  78.           </treecolgroup>
  79.         </tree>
  80.         <box orient="vertical">
  81.           <grid flex="1" autostretch="never">
  82.             <columns><column class="spell-check" flex="1"/><column class="spell-check" flex="1"/></columns>
  83.             <rows>
  84.               <row>
  85.                 <button class="dialog" id="Ignore"    oncommand="Ignore()" label="&ignoreButton.label;"/>
  86.                 <button class="dialog" id="IgnoreAll" oncommand="IgnoreAll()" label="&ignoreAllButton.label;"/>
  87.               </row>
  88.               <row>
  89.                 <button class="dialog" id="Replace" oncommand="Replace()" label="&changeButton.label;"/>
  90.                 <button class="dialog" id="ReplaceAll" oncommand="ReplaceAll()" label="&changeAllButton.label;"/>
  91.               </row>
  92.             </rows> 
  93.           </grid>
  94.           <spring flex="1"/>
  95.           <text class="label" value="&userDictionary.label;"/>
  96.           <box flex="1" autostretch="never">
  97.             <button class="dialog spell-check" id="AddToDictionary" oncommand="AddToDictionary()" label="&addToUserDictionaryButton.label;" />
  98.             <button class="dialog spell-check" id="EditDictionary"  oncommand="EditDictionary()" label="&editUserDictionaryButton.label;"   />
  99.           </box>
  100.         </box>
  101.       </row>
  102.       <row>
  103.         <text class="label" value ="&languagePopup.label;"/>
  104.         <spring/>
  105.       </row>
  106.       <row>
  107.         <menulist id="LanguageMenulist" oncommand="SelectLanguage()"/>
  108.          <!-- contents are appended by JS -->
  109.         <box flex="1">
  110.           <button class="dialog spell-check" id="Recheck" label="&recheckButton.label;" oncommand="Recheck()"/>
  111.           <button class="dialog spell-check" id="Close"   label="&closeButton.label;"   oncommand="onClose()"/>
  112.         </box>
  113.       </row>
  114.     </rows>
  115.   </grid>
  116. </window>
  117.